/*
 * @Author: your name
 * @Date: 2021-09-02 10:02:25
 * @LastEditTime: 2021-09-02 12:22:37
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day09\2-Math.js
 */
//Math.min() 最小值
console.log(Math.min(10, 9, 4, 8, 251, 3, 1));

//Math.max() 最大值
console.log(Math.max(10, 9, 4, 8, 251, 3, 1));
//Math.ceil() 向上取舍
console.log(Math.ceil(10.41)); //11

//Math.floor() 向下取舍
console.log(Math.floor(10.41)); //10
console.log(Math.floor(10.91)); //10

//Math.round() 四舍五入
console.log(Math.round(10.91)); //11
console.log(Math.round(10.41)); //10

//Math.random() 0-1的随机数
console.log(Math.random());